package com.ruoyi.monitorTools.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.monitorTools.domain.A2ROfEFIntrusion;
import com.ruoyi.monitorTools.domain.ElectronicFence;
import com.ruoyi.monitorTools.domain.RegionalInfo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【a2_electronic fence(电子围栏列表)】的数据库操作Service
* @createDate 2025-02-11 13:34:24
*/
public interface ElectronicFenceService extends IService<ElectronicFence> {

    Integer insertOne(ElectronicFence electronicFence);

    AjaxResult updateByTaskIdAndRegionalId(ElectronicFence electronicFence);

    ElectronicFence selectEleById(Long id);

    List<ElectronicFence> listByPage(String regionalName, Integer enableStatus);

    /**
     * @description: 查询其他的区域 如重点活动
     * @author: wsl
     * @date: 2025-02-12 14:17
     * @return: java.util.List<com.ruoyi.electronicFence.domain.RegionalInfo>
     **/
    List<RegionalInfo> selectOtherList();

    /**
     * @description:  根据id 修改状态
     * @author: wsl
     * @date: 2025-02-12 14:27
     * @param: id
     * @return: java.lang.Integer
     **/
    Integer updateEnableStatusById(Long id, Integer enableStatus);

    AjaxResult batchUpdateEnableStatus(List<Integer> idList, Integer enableStatus);

    List<ElectronicFence> isBreakOrOut(double lon, double lat, Date baseTime);

    List<A2ROfEFIntrusion> selectBehavior(Long taskId, Integer behavior, String tergetName);







}
